public class IAMhagglerBayesianModel extends OpponentModel
| Modifier and Type | Class and Description |
|---|---|
static class |
IAMhagglerBayesianModel.Extreme |
negotiationSession, opponentUtilitySpace| Constructor and Description |
|---|
IAMhagglerBayesianModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Removes references to the objects used by the opponent model.
|
protected void |
findMinMaxUtility()
Find the minimum and maximum utilities of the bids in the utility space.
|
EvaluatorHypothesis |
getBestHypothesis(int issue) |
double |
getBidEvaluation(Bid bid)
Determines the utility of a bid according to the preference profile.
|
double |
getExpectedUtility(Bid bid)
Get the expected utility of a bid.
|
double |
getExpectedWeight(int number)
Get the expected weight of a particular issue.
|
double |
getExtremeEvaluation(Evaluator evaluator,
IAMhagglerBayesianModel.Extreme extreme) |
Hypothesis |
getHypothesis(int index) |
java.lang.String |
getName() |
double |
getNormalizedUtility(Bid bid)
Get the normalised utility of a bid.
|
double |
getNormalizedUtility(Bid bid,
boolean debug)
Get the normalised utility of a bid.
|
UtilitySpace |
getOpponentUtilitySpace() |
double |
getWeight(Issue issue)
Returns the weight of a particular issue in the domain.
|
void |
init(NegotiationSession negotiationSession,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the model.
|
void |
updateModel(Bid opponentBid,
double time)
Update the beliefs about the opponent, based on an observation.
|
getIssueWeights, init, isCleared, setOpponentUtilitySpace, setOpponentUtilitySpace, updateModelpublic void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OpponentModelinit in class OpponentModelnegotiationSession - reference to the state of the negotiationjava.lang.Exceptionpublic double getBidEvaluation(Bid bid)
OpponentModelgetBidEvaluation in class OpponentModelbid - of which the utility is calculated.public double getNormalizedUtility(Bid bid) throws java.lang.Exception
bid - The bid to get the normalised utility of.java.lang.Exceptionpublic double getNormalizedUtility(Bid bid, boolean debug) throws java.lang.Exception
bid - The bid to get the normalised utility of.debug - Whether or not to output debugging informationjava.lang.Exceptionpublic double getExpectedUtility(Bid bid) throws java.lang.Exception
bid - The bid to get the expected utility of.java.lang.Exceptionpublic void updateModel(Bid opponentBid, double time)
updateModel in class OpponentModelopponentBid - The opponent's bid that was observed.time - at which the bid was offered.java.lang.Exceptionprotected void findMinMaxUtility()
throws java.lang.Exception
java.lang.Exceptionpublic double getWeight(Issue issue)
OpponentModelgetWeight in class OpponentModelissue - from which the weight should be returnedpublic double getExtremeEvaluation(Evaluator evaluator, IAMhagglerBayesianModel.Extreme extreme)
public double getExpectedWeight(int number)
number - The issue number.public EvaluatorHypothesis getBestHypothesis(int issue)
public Hypothesis getHypothesis(int index)
public UtilitySpace getOpponentUtilitySpace()
getOpponentUtilitySpace in class OpponentModelpublic java.lang.String getName()
getName in class OpponentModelpublic void cleanUp()
OpponentModelcleanUp in class OpponentModel